package com.good.controller;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.good.entity.A;
import com.good.entity.A.EnumDemo;
import com.good.service.AService;

@Controller
public class AController {
	@Autowired
	private AService aService;
	@RequestMapping(value="abc",method=RequestMethod.GET)
	public void t1(){
		A entity=new A();
		entity.setEnumDemo(EnumDemo.A);
		entity.setDate(new Date());
		aService.save(entity);
	}
}
